$(document).ready(function(){
	initNotificationGrid();
})

function initNotificationGrid(){
	jQuery("#notifications").jqGrid({
		url: "/admin/myNotification/1",
		datatype: "json",
	   	colNames:['Type','Group', 'Class', 'Name','PAC Version','Version','State'],
	   	colModel:[
	   		{name:'type',index:'type', width:55, sortable:true},
	   		{name:'group',index:'group', width:90},
	   		{name:'class',index:'class', width:100},
	   		{name:'name',index:'name', width:80, align:"right"},
	   		{name:'pacVersion',index:'pacVersion', width:80, align:"right"},		
	   		{name:'version',index:'version', width:80,align:"right"},		
	   		{name:'state',index:'state', width:150}		
	   	],
	   	rowNum:10,
	   	rowTotal: 50,
	   	rowList:[10,20,30],
	   	pager: '#pager',
	   	sortname: 'type',
	   	loadonce: true,
	    viewrecords: true,
	    sortorder: "desc",
	    caption: "My Notificatin in Progress",
	    height: "700px",
	    autowidth: true
	});
	jQuery("#notifications").jqGrid('navGrid','#pager',{edit:false,add:false,del:false});
}